<?php
/**
 * 接口类工厂
 * @package  htdocs
 * @subpackage  core
 * @author   allen.qiang
 * @version 1.0
 */
class eaiFactory {

    public static function web_eai( $eai_name ) {

        quanli_require('module/base/common/quanliHttp.class.php');
        quanli_include( sprintf( '%seai/config.%s.php' , G_CONFIG_ROOT, $eai_name ) );
        quanli_include( sprintf( 'module/eai/%s/%s.interface.php', $eai_name, $eai_name ) );
        quanli_include( sprintf( 'module/eai/%s/%s/%s.eai.php', $eai_name, G_EAI_DEVELOP, $eai_name ) );
        $class_name = $eai_name . 'EAI';
        return new $class_name;

    }

}